#ifndef POWERUP_H
#define POWERUP_H

#include <nds.h>
#include "ellen/ln.h"
#include "reference.h"
#include "player.h"
#include "game.h"

#include "powerups.h"

class powerup{
public:
	powerup();
	powerup(const powerup& P);
	~powerup();
	void assignSprite();
	void update();
	void display();
	void handleAnimation();
	void setOffset(tFloat posX,tFloat posY);
	void setPos(tFloat posX,tFloat posY);
	void setType(int type);
	void setBounds();
	void setHidden(bool hidden);
	void activatePowerup();
	BoundingBox getBounds();
	t2DVector getPos();

	bool markedForDeletion;
private:
	lnSprite* p_sprite;
	lnSpriteAnim* p_spriteAnim;

	int p_type;
	int p_sizeOffset;
	int p_size;

	t2DVector p_position;
	t2DVector p_localPosition;
	t2DVector p_offset;

	BoundingBox p_bounds;

};
#endif